const cors = require('koa2-cors');

//后端跨域设置，origin是允许对接的前端服务
//ps:192.168.15.247
//xz:10.10.203.219
module.exports = cors({
    origin: 'http://192.168.15.243',
    //origin:'http://localhost:8000',
    credentials:true,
    allowMethods: ['GET', 'POST', 'DELETE', 'OPTIONS'],
    maxAge: 5
  });